package com.fenyin.samples.study.rmi.example1.service;  

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.bj58.samples.study.rmi.example1.service.IHelloService;
/**
 *@Title:  接口服务包
 *@Description:  服务接口实现类
 *@Author:fengzhichao  
 *@Since:2012-9-20  
 *@Version:1.1.0
 */
public class HelloService extends UnicastRemoteObject implements IHelloService{

	private static final Log log = LogFactory.getLog(HelloService.class);
	
	private String message;
	
	public HelloService(String msg) throws RemoteException {
		message = msg; 
	}

	private static final long serialVersionUID = 1L;

	public String say() throws RemoteException {
		log.info("say method is called!");
		return message;
	}
}
